<?php

/* 

 * To change this license header, choose License Headers in Project Properties.

 * To change this template file, choose Tools | Templates

 * and open the template in the editor.

 */

             
   // header("Conten-Type:text/html;charset=utf-8");
   $servername = "127.0.0.1";  //mysql服务器主机地址
   $usernam = "root";      //mysql用户名
   $password = "";//mysql用户名密码
    $dbpass = "shente";
   //$port=8080;

            

   $conn =new mysqli( $servername,$usernam, $password,$dbpass);
   if( $conn->connect_error)
   {
     die("链接失败" . $conn->connect_error);
   }
   $conn->query("set names'utf8'");

?>